//单价，数量，顾客的钱数
var price = 9;
var count = 3;
var money = 100;
//计算商品的总价是多少
var total = price*count;//27
var rest = money-total;//73
//商品的总价为27元
console.log('商品的总价为:'+total+'元');
//计算找零
console.log('应该找零为:'+rest+'元');







